How get a string from DXL attribute value?

string of DXL attribute value:

  REQ-E.10-1.11-112

(with two spaces before and 12 spaces after, but they are not  "space".)

 

 richText of DXL attribute value:

\pard {\rtf1\ansi\ansicpg1251\deff0\deflang1049{\fonttbl{\f0\fnil\fcharset0 Tahoma;}{\f1\fnil\fcharset204 Tahoma;}}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\lang1033\f0\fs20 REQ-E.10-1.11-112\lang1049\f1\par
}

How can I get just a string :

REQ-E.10-1.11-112
 


Vxuser - Wed Feb 10 09:33:22 EST 2016

Re: How get a string from DXL attribute value?
DOORSHAM - Mon Feb 15 13:45:27 EST 2016

Do you suppose it could be as easy as the demo below?

 

Object o = current
string sRich = richText(o."DXL_ATTRIBUTE")
print sRich
 
string sPlain = o."DXL_ATTRIBUTE"
print "\n" sPlain